package com.share.design.proxy;

/**
 * author:caifan
 * date:2020/2/4
 */
public class Boy1 implements GiveGift {
    private final Girl girl;

    public Boy1(Girl girl) {
        this.girl = girl;
    }

    @Override
    public void giveFlower() {
        System.out.println(String.format("boy1 send flower to %s",  girl.name));
    }
}
